package com.crm.dao.mapper.customMapper.permissionManagement;

import com.crm.model.entity.sys.permissionManagement.SysCompanyPermission;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @ Author ：pym
 * @ Date   ：2020/12/10 13:08
 */
public interface SysCompanyPermissionCustomMapper {

    /**
     * 批量添加公司-(菜单-权限组关联)关联表数据
     * @param sysCompanyPermissionList
     * @return
     */
    int insertSysCompanyPermissionBatch(List<SysCompanyPermission> sysCompanyPermissionList);

    /**
     * 批量删除公司-权限关联
     * @param menuPermissionIds
     * @return
     */
    int batchDelSysCompanyPermissionByMPIds(@Param("menuPermissionIds") List<String> menuPermissionIds,
                                            @Param("accountId") String accountId, @Param("updateTm") Date updateTm);
}
